/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_OBSERVER_H
#define DESIGNPATTERN_OBSERVER_H

namespace Observer {

    /**
     * 观察者
     */
    class Observer {

    public:
        virtual void update(float temp, float humidity, float pressure) = 0;

        virtual ~Observer() = default;
    };

} // Observer

#endif //DESIGNPATTERN_OBSERVER_H
